home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / tex / atcomp16.zip / @COMPARE.DOC next >
Text File  |  1994-01-26  |  27KB  |  554 lines

  1.                         ╔═════════════════════════╗
  2. ════════════════════════╣  @Compare, version 1.6  ╠════════════════════════
  3. ════════════════════════╣     Brian C. Madsen     ╠════════════════════════
  4.                         ╚═════════════════════════╝
  5.  
  6.  
  7.  
  8. COPYRIGHTS AND DISCLAIMERS:  ══════════════════════════════════════════════
  9.  
  10. @Compare is copyright 1988-1994 by Brian C. Madsen.  This copyright applies
  11. to the source code, the executable program, and this documentation, and to
  12. all past and future versions of this program which have been or will be
  13. produced by the author.  All rights are reserved, including the right to
  14. market this product for profit.  Although @Compare is copyrighted, it may
  15. be freely distributed, so long as it is accompanied by this documentation,
  16. and so long as neither the program nor this documentation is altered in any
  17. way.  The author will not be held legally responsible for unforseen side
  18. effects arising from the use of this program, and your use of this program
  19. constitutes your agreement to this copyright notice and disclaimer.
  20.  
  21.  
  22.  
  23. DESCRIPTION:  ═════════════════════════════════════════════════════════════
  24.  
  25. @Compare works on Ascii files which are roughly similar to each other (for
  26. example, a .PAS and its .BAK file; a document and an earlier version of
  27. the same document; or data created via double data entry.)  Files to be
  28. compared may be of unlimited length.
  29.  
  30. @Compare matches up the two files, displaying them side by side, and dis-
  31. playing the similarities and differences between them.  Equal lines are
  32. marked by an equal sign on both sides of the screen; discrepancies in
  33. similar but unequal lines are highlighted; and lines which exist in one
  34. file and which have no corresponding counterpart in the other file are
  35. displayed as such.
  36.  
  37.  
  38.  
  39. CHANGES SINCE VERSION 1.5 ═════════════════════════════════════════════════
  40.  
  41. The following features have been added, and problems resolved, since the
  42. last release of @Compare.  Feel free to skip this section if you are new
  43. to @Compare.
  44.  
  45. 1.  A bug has been fixed which caused range check errors when very large
  46.     files were @Compared, or when very long stretches occurred between
  47.     differences in files.
  48.  
  49. 2.  My address has changed.
  50.  
  51. 3.  Version number and copyright dates have been updated throughout.
  52.  
  53.  
  54.  
  55. OPERATION:  ═══════════════════════════════════════════════════════════════
  56.  
  57.     At a glance:  @Compare [-PFMTHARCLEBQ] [filename.one [filename.two]]
  58.  
  59. @Compare accepts an options parameter and the names of one or two files as
  60. command line arguments.  The options parameter, if it is present, must be
  61. the first in the list of command line parameters, and it must begin with a
  62. / or -.  If none of these parameters is given, a usage reminder is printed
  63. and the program prompts for them.
  64.  
  65. Legal options are as follows:
  66.  
  67.     P -- directs output to the printer.
  68.  
  69.     F -- directs output to a file.  The program prompts for the name of
  70.          this file, which defaults to @Compare.@@@. The file will be over-
  71.          written if it already exists. The F parameter takes precedence
  72.          over the P parameter if both are specified.
  73.  
  74.     M -- writes to the screen in black and white, instead of the default
  75.          colors.  This is intended for use with monochrome monitors.
  76.  
  77.     T -- suppresses the printing of the program's title.
  78.  
  79.     H -- suppresses highlighting of discrepancies in unequal lines.  This
  80.          highlighting is done on a character by character basis.  It shows
  81.          up as underlining on the printer, and does not show up in the
  82.          @Compare.@@@ file.
  83.  
  84.     A -- replaces all occurrences of extended Ascii graphics characters
  85.          (┼, ╬, ║, ╒, and so on) with standard Ascii characters (|, =,
  86.          +, *).  This is designed for use with printers which can't print
  87.          the graphics characters, although the A option takes effect
  88.          whether output is directed to the printer, to a file, or to the
  89.          screen.  This option only affects the graphics characters
  90.          produced by @Compare: if the files being compared contain
  91.          extended Ascii graphics characters, they will not be translated
  92.          when printed.
  93.  
  94.     R -- sends reports of discrepancies to two files.  The program prompts
  95.          for the names of these files, which default to @Compare.@R@ and
  96.          @Compare.@S@, and which will be overwritten if they already
  97.          exist.  This option was designed to be used on files containing
  98.          data in fields and columns, and it is probably most useful in
  99.          that case, but it works well when used on other files.  This op-
  100.          tion is described more fully in a later section of this document.
  101.  
  102.     C -- overrides the page breaks which occur whenever the screen in full
  103.          of output, resulting in a continuous scroll of information on the
  104.          screen.  This parameter is only meaningful if P and F parameters
  105.          are not specified, or in other words, it only takes effect if
  106.          output is directed to the screen.
  107.  
  108.     L -- does a longer search than usual to find matching lines.
  109.     E -- does an extra long search to find matching lines.
  110.          These more thorough searches slow down execution of the program,
  111.          and shouldn't be necessary for most operations.
  112.  
  113.     B -- suppresses direct video writes, and uses BIOS calls to write to
  114.          the screen.  BIOS calls are slower, but sometimes necessary, such
  115.          as in the case where DESQview requires them to prevent bleeding.
  116.  
  117.     Q -- quits the program.  If you invoke the program without command
  118.          line parameters, and all you want to do is view the usage
  119.          reminder, enter Q at the options prompt.
  120.  
  121.  
  122. Examples of operation:
  123.  
  124. Two versions of an Ascii document can be compared by typing:
  125. @Compare Ascii1.doc Ascii2.doc
  126.  
  127. This comparison may be directed to a file by typing:
  128. @Compare /f Ascii1.doc Ascii2.doc
  129.  
  130. The comparison may be directed to the printer, with the title and high-
  131. lighting suppressed, with the command:
  132. @Compare -PTH Ascii1.doc Ascii2.doc
  133.  
  134. If only one filename is specified on the command line, it will be
  135. assumed that the second filename is the corresponding .BAK file, if one
  136. exists.  In other words, the following two commands are equivalent:
  137. @Compare Ascii.doc
  138. @Compare Ascii.doc Ascii.bak
  139.  
  140. If you issue the command "@Compare Ascii.doc", and @Compare can't find
  141. the Ascii.bak file, @Compare will prompt for a second file name.
  142.  
  143.  
  144.  
  145. THE @COMPARE ENVIRONMENT VARIABLE:  ═══════════════════════════════════════
  146.  
  147. Some of the information in the previous section is modified by the DOS
  148. environment variable @COMPARE, if it exists.  This variable is absolutely
  149. optional, and @Compare will function just fine without it.  However, you
  150. may want to use it to customize @Compare's operation.
  151.  
  152. It is outside the scope of this document to explain environment variables.
  153. For more information, consult your DOS manual.  Because @Compare doesn't
  154. require the @COMPARE environment variable, you can safely skip this
  155. section if you don't know about the DOS environment.
  156.  
  157. If @Compare finds the @COMPARE variable in the environment, the environ-
  158. ment string is used to modify @Compare's operation in two ways.
  159.  
  160. FIRST OF ALL, part of the environment string, as explained below, sup-
  161. plants "bak" as the backup file extension.  As explained in the previous
  162. section, the command "@Compare Ascii.doc" is equivalent to the command
  163. "@Compare Ascii.doc Ascii.bak".  That is, if the user does not specify a
  164. second file name, @Compare assumes that the second file name should be the
  165. backup version of the first file name, and acts accordingly.
  166.  
  167. Now, let's say your editor creates backup files with an extension other
  168. than .BAK, say .BCK, or .BKP, etc.  Or, let's say you're comparing doubly-
  169. entered data with the report option, and that your first dataset is called
  170. DATA.001 and your second is called DATA.002.  With the @COMPARE environ-
  171. ment variable, you can tell @Compare what to look for as a default second
  172. file extension. In this way, "@Co